package com.yanqu.road.entity.log;

import com.yanqu.road.entity.FieldTypeAnnotation;

import java.util.Date;

@FieldTypeAnnotation(tableName = "t_l_tongtian_top_fight", autoSave = true)
public class LogClimbTowerTopFight {

    @FieldTypeAnnotation(isIndex = true)
    int activityId;

    @FieldTypeAnnotation(isIndex = true)
    long userId;

    @FieldTypeAnnotation(desc = "玩家实力")
    String ability;

    @FieldTypeAnnotation(desc = "幻境层数")
    int cellNum;

    @FieldTypeAnnotation(desc = "被挑战的玩家ID")
    long enemyId;

    @FieldTypeAnnotation(desc = "被挑战的实力")
    String enemyAbility;

    @FieldTypeAnnotation(desc = "奖励")
    String reward;

    @FieldTypeAnnotation(desc = "时间")
    private Date logTime;

    public LogClimbTowerTopFight(int activityId, long userId, String ability, int cellNum, long enemyId, String enemyAbility, String reward) {
        this.activityId = activityId;
        this.userId = userId;
        this.ability = ability;
        this.cellNum = cellNum;
        this.enemyId = enemyId;
        this.enemyAbility = enemyAbility;
        this.reward = reward;
        this.logTime = new Date();
    }

    public int getActivityId() {
        return activityId;
    }

    public long getUserId() {
        return userId;
    }

    public String getAbility() {
        return ability;
    }

    public int getCellNum() {
        return cellNum;
    }

    public long getEnemyId() {
        return enemyId;
    }

    public String getEnemyAbility() {
        return enemyAbility;
    }

    public Date getLogTime() {
        return logTime;
    }
}
